package loja;

import java.sql.SQLException;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import javax.swing.UnsupportedLookAndFeelException;
import loja.gui.Principal;

/**
 * Sistema de Loja
 * @author Rodrigo
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws SQLException {
        try {
            for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }

            java.awt.EventQueue.invokeLater(new Runnable() {

                public void run() {
                    new Principal().setVisible(true);
                }
            });
        } catch (UnsupportedLookAndFeelException e) {
            // handle exception
        } catch (ClassNotFoundException e) {    // handle exception
        } catch (InstantiationException e) {    // handle exception
        } catch (IllegalAccessException e) {    // handle exception
        }
    }
}

